package com.binhai.springboot.org.bean;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

public class OrgBean implements Serializable {
    private Integer id;
    private String value;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    private String label;
    private String name;

    private Integer parentid;

    private String address;

    private String leader;

    private String phone;
    private String parentName;
    private String pId;
private Timestamp time;

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    ;

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    private String beizhu;
    private List<OrgBean> children;

    public List<OrgBean> getChildren() {
        return children;
    }

    public void setChildren(List<OrgBean> children) {
        this.children = children;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim ( );
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim ( );
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader == null ? null : leader.trim ( );
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim ( );
    }

    public String getBeizhu() {
        return beizhu;
    }

    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu == null ? null : beizhu.trim ( );
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder ( );
        sb.append (getClass ( ).getSimpleName ( ));
        sb.append (" [");
        sb.append ("Hash = ").append (hashCode ( ));
        sb.append (", id=").append (id);
        sb.append (", name=").append (name);
        sb.append (", parentid=").append (parentid);
        sb.append (", address=").append (address);
        sb.append (", leader=").append (leader);
        sb.append (", phone=").append (phone);
        sb.append (", beizhu=").append (beizhu);
        sb.append (", serialVersionUID=").append (serialVersionUID);
        sb.append ("]");
        return sb.toString ( );
    }
}